from concurrent.futures import ThreadPoolExecutor,ProcessPoolExecutor
import datetime
def print_value(value):
    print('Thread'+str(value))

def myThread(value):
    Thread=ThreadPoolExecutor(max_workers=2)
    Thread.submit(print_value,datetime.datetime.now())
    Thread.submit(print_value,datetime.datetime.now())
def myProcess():
    pool=ProcessPoolExecutor(max_workers=2)
    pool.submit(myThread,datetime.datetime.now())
    pool.submit(myThread,datetime.datetime.now())

if __name__ == '__main__':
    myProcess()